Skip to content

More gracefully handle hidden or empty group elements#541

Merged
bvaughn merged 2 commits intomainfrom
bvaughn/issues/536
Dec 18, 2025
Merged

More gracefully handle hidden or empty group elements#541
bvaughn merged 2 commits intomainfrom
bvaughn/issues/536

Conversation

@bvaughn
Copy link
Owner

@bvaughn bvaughn commented Dec 18, 2025

Whenever a group's layout is being calculated, either on mount or after a resize, guard against a hidden (or 0-width) scenario, as this results in NaN layout values.

Resolves #536

@vercel
Copy link

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
react-resizable-panels Ready Ready Preview Dec 18, 2025 5:48pm

@bvaughn bvaughn changed the title Delay default layout calculations until visible More gracefully handle hidden or empty group elements Dec 18, 2025
@bvaughn bvaughn merged commit 2063027 into main Dec 18, 2025
7 checks passed
@bvaughn bvaughn deleted the bvaughn/issues/536 branch December 18, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Layout values set to NaN if group is rendered within a hidden container

1 participant